package com.mofang.ticketing.base.client.api;

import com.mofang.ticketing.base.client.pojo.request.SysConfigGetReqDTO;
import com.mofang.ticketing.common.core.result.Result;
import com.mofang.ticketing.common.core.urls.base.SysConfigUrl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author LGC
 */
@FeignClient(value = "ticketing-base-serve", contextId = "base")
public interface BaseClient {


    /**
     * 获取系统配置
     *
     * @param dto 请求
     * @return 返回配置
     */
    @ApiOperation(value = "获取系统配置")
    @PostMapping(value = SysConfigUrl.CONFIG_GET)
    Result<String> configGet(@RequestBody SysConfigGetReqDTO dto);

    /**
     * fegintest
     *
     * @return
     */
    @ApiOperation(value = "feigntest")
    @PostMapping(value = "/feigntest")
    String feigntest();

}
